import request from '@/utils/http'

const apiList = {
    userInfo: 'admin/info',
    roleById: 'role/findRoleByAdminId',
    menu: 'menu/tree',
}

export default {
    userInfo: data => {
        return request.get(apiList.userInfo, { params: data })
    },
    roleId: data => {
        return request.get(apiList.roleById, { params: data })
    },
    menu: data => {
        return request.get(apiList.menu, { params: data })
    },
}